package com.jlcindia;

public class OOPTest6 {

	public static void main(String[] args) {
	LocalManager mn=new LocalManager();
	mn.execute(true);
	mn.show(123,"welcome");
	System.out.println("\n************");
	if(true){
		int var=123;
		System.out.println("If block:"+var);
	}
	//System.out.println(var);
	for(int i=0;i<5;i++){
		int ab=98;
		ab++;
		System.out.println("In for block"+"\t"+ab);
	}
	//System.out.println(i);
	//System.out.println(ab);
	String val="Hello";
	//float val=123.45f;
	{
		int data=1919;
		System.out.println("data:"+data);
	}
	{
		String data="JLC";
		System.out.println("data:"+data);
	}
	//System.out.println(data);

	}

}
class LocalManager{
	int data=9999; //class level variable
	void show(final int ab,String msg){ // ab is local variable & only final keyword 
		System.out.println("\n **show()**");// can be used with local variable
		System.out.println("data:"+data);
		System.out.println(ab);
		System.out.println(msg);
		msg="ravi";
		//ab=98;
		float xy=1234.56f;
		final int DT=12;
		//private int n=90;
		System.out.println(xy);
		boolean data=false;
		System.out.println("data:"+data);
	}
	void execute(boolean msg){
		System.out.println("\n**execute()**");
		//System.out.println(ab);
		//System.out.println(xy);
		System.out.println(msg);
		System.out.println(data);
	}
	static void process(){
		//static int bd=23;
		int bn=90;
		System.out.println(bn);
		//System.out.println(data);
	}
}